package com.codingfuture.erp_system.mapper;

import com.codingfuture.erp_system.entity.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerMapper {
    List<Customer> findByAll();

    int insertCustomer(Customer customer);

    int deleteCustomer(Integer id);

    Customer findById(Integer id);

    int updateCustomer(Customer customer);

    List<Customer> findByAll(Customer customer);

    Customer findByName(String name);
}
